import request from "../utils/request";

interface ResponseData<T = any> {
    status: number,
    msg: string,
    data: T
}

export const login = (data:{}) => {
    return request({
        method:'POST',
        url:'/login',
        data:data
    }).then(res=>{
        return res.data
    })
}